<template>
  <div class="login">
    登录 账号<input type="text" v-model="username" />
    <br />
    密码<input type="text" v-model="password" />
    <br />
    <button @click="login">登录</button>
    <br />
  </div>
</template>

<script>
export default {
    data(){
        return{
            username:'',
            password:''
        }
    },
    methods:{
        login(){
           this.$router.push('/home/list') 
        }
    }
};
</script>

<style scoped>
.login{
    width: 100%;
    height: 100%;
}
input{
  width: 240px;
  height: 40px;
  margin: 10px 0;
  padding-left: 10px;
}
button{
  width: 150px;
  height: 35px;
}
</style>